package com.zhc.dejingapi.controller;

import com.zhc.dejingapi.pojo.param.QingCommonBackResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/machine")
@CrossOrigin
public class GetMachineRunInfoController {

    @GetMapping("/getstart")
    public QingCommonBackResult GetStartTime(@RequestHeader(name = "apiKey") String apiKey,
                               @RequestParam(name = "machineId") String strMachineId,
                                             @RequestParam(name = "opSeq" ) String opSeq){
        QingCommonBackResult backResult=new QingCommonBackResult();
        backResult.setErrCode(0);
        backResult.setErrMsg("");
        log.error("请求参数："+strMachineId);
        String strApiKey="B82ADA3F119D42A0B3AC237FDD6C40960A9065EB402A4D73B4D227AF15EF6D88";

        //@RequestHeader(name = "apiKey") String apiKey,
        //QingDataCommResult result=qingEquipmentService.UpdEquipment(eqParam);


        backResult.setBackValue("2024-01-01 00:00:00");
        return backResult;
    }
}
